<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>layout 后台大布局 - Layui</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">

<link rel="stylesheet" href="css/layui.css" media="all">
</head>
<body class="layui-layout-body">
		<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo">爱阅电子书城</div>
			<!-- 头部区域（可配合layui已有的水平导航） -->
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="javascript:;"> <img
						src="http://t.cn/RCzsdCq" class="layui-nav-img"> <%=session.getAttribute("adminName")%>
				</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:adminInfofun('${user.userName}')">基本资料</a>
						</dd>
						<dd>
							<a href="">安全设置</a>
						</dd>
					</dl></li>
				<li class="layui-nav-item"><a href="">退了</a></li>
			</ul>
		</div>

			<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
				<ul class="layui-nav layui-layout-right" lay-filter="test">
					<li class="layui-nav-item "><a class="" >图书管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="addBookInfo.jsp">添加图书</a>
							</dd>
							<dd>
								<a href="bookInfo.jsp">图书信息</a>
							</dd>

						</dl></li>

					<li class="layui-nav-item"><a class="" >图书类型管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="addBookTypeInfo.jsp">添加图书类型</a>
							</dd>
							<dd>
								<a href="bookTypeInfo.jsp">图书类型信息</a>
							</dd>

						</dl></li>

					<li class="layui-nav-item"><a class="" >用户管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="addUsers.jsp">添加用户</a>
							</dd>
							<dd>
								<a href="userInfo.jsp">用户信息</a>
							</dd>

						</dl></li>
					<li class="layui-nav-item"><a class="" >订单管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="adminOrders.jsp">订单查询</a>
							</dd>

						</dl></li>
				</ul>
			</div>
		</div>


		<div class="layui-body">
			<!-- 内容主体区域 -->
			<fieldset class="layui-elem-field layui-field-title"
				style="margin-top: 30px;">
				<legend>修改用户信息</legend>
			</fieldset>
			<span style="color: red"><%=request.getAttribute("msg") == null ? "" : request.getAttribute("msg")%></span>
			<form class="layui-form" action="UserServlet?op=adminupdateuser&userId=${user.userId}" method="post">

				<div class="layui-form-item">
					<label class="layui-form-label">用户编号</label>
					<div class="layui-input-block">
						<input type="text" name="userid" lay-verify="title"
							id="userid" autocomplete="off" placeholder="请输入用户编号"
							class="layui-input" value="${user.userId}">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">用户名</label>
					<div class="layui-input-block">
						<input type="text" name="username" lay-verify="title"
							id="username" autocomplete="off" placeholder="请输入用户名"
							class="layui-input" value="${user.userName}">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">密码</label>
					<div class="layui-input-block">
						<input type="text" name="userpwd" id="userpwd" lay-verify="title"
							placeholder="请输入密码" class="layui-input" value="${user.userPwd}">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">身份证</label>
					<div class="layui-input-block">
						<input type="text" name="idcard" lay-verify="title" id="idcard"
							autocomplete="off" placeholder="请输入身份证" class="layui-input" value="${user.idCard}">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系方式</label>
					<div class="layui-input-block">
						<input type="text" name="tel" lay-verify="title" id="tel"
							autocomplete="off" placeholder="请输入联系方式" class="layui-input" value="${user.tel}">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">地址</label>
					<div class="layui-input-block">
						<input type="text" name="addr" lay-verify="title" id="addr"
							placeholder="请输地址" autocomplete="off" class="layui-input" value="${user.addr}">
					</div>
				</div>

				<div class="layui-form-item">
					<div class="layui-input-block">
						<input type="hidden" name="op" value="update"> <input
							type="submit" class="layui-btn" lay-submit="" value="修改">
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>

			</form>
			<span style="color: red"><%=request.getAttribute("msg1") == null ? "" : request.getAttribute("msg1")%></span>

		</div>

		<div class="layui-footer">
			<!-- 底部固定区域 -->
			© layui.com - 底部固定区域
		</div>
	</div>

	<script src="js/layui.all.js" charset="utf-8"></script>

	<script>

        <!--跳转到个人信息-->
	function adminInfofun(adminName){
		location.href = "http://localhost:8080/love_reading_ebook_city/AdminServlet?op=admininfo&adminName="
			+ adminName;
	} 
	</script>



</body>
</html>